import request from '@/utils/request'
// 获取权限列表
export function getpermissionList(params) {
  return request.get('/permissions', params)
}
// 添加权限
export function addpermission(data) {
  return request.post('/permissions', data)
}
// 删除
export function removepermission(id) {
  return request.delete(`/permissions/${id}`)
}
// 获取指定权限
export function getpermissionId(id) {
  return request.get(`/permissions/${id}`)
}
// 编辑
export function getpermissionBj(data) {
  return request.put(`/permissions/${data.id}`, data)
}
